home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / aindex.dir / 00749_Script_aRefLink < prev    next >
Text File  |  1995-09-06  |  1KB  |  41 lines

  1. --òò aRefLink
  2. property pCast, pSprite , pRange, pFunctionCast
  3.  
  4. on birth me , theCast ,theSprite,theRange,theFunctionCast
  5.   set pCast = theCast
  6.   set pSprite = theSprite
  7.   set pRange = theRange
  8.   set pFunctionCast = theFunctionCast
  9.   return me
  10. end
  11.  
  12. --on clickRefLink me , theOffset
  13. --  set theHOffset = the mouseH
  14. --  set theVOffset = the mouseV
  15. --  --put theHOffset , theVOffset
  16. --  
  17. --  set thisRec = getAt(pHotSpots,1)
  18. --  set rleft = getAt(thisRec,1)
  19. --  set rtop = getAt(thisRec,2)
  20. --  set rright = getAt(thisRec,3)
  21. --  set rbottom = getAt(thisRec,4)
  22. --  if ((theHOffset > rleft and theHOffset < rright ) ┬
  23. --     and (theVOffset > rtop and theVOffset < rbottom ) ) then 
  24. --    put "HIT"
  25. --  else
  26. --    put "MISS",rleft,rtop,rright,rbottom 
  27. --  end if
  28. --end
  29.  
  30. --rect(left, top, right, bottom)
  31. on showRefLinkIcon me , theOffset
  32.   set subFunctionOffset = theOffset/26
  33.   set the castNum of sprite 40 = (pCast + subFunctionOffset)
  34.   set the locH of sprite 40 = 320
  35.   set the locV of sprite 40 = 240
  36. end
  37.  
  38. on clearRefLinkIcon me
  39.   set the locH of sprite 40 = -300
  40.   set the locV of sprite 40 = -200
  41. end